import request from '@/utils/request'

// 查询知识库类型列表
export function listKnowledgesType(query) {
  return request({
    url: '/knowledgesType/knowledgesType/list',
    method: 'get',
    params: query
  })
}

// 查询知识库类型详细
export function getKnowledgesType(typeId) {
  return request({
    url: '/knowledgesType/knowledgesType/' + typeId,
    method: 'get'
  })
}

// 新增知识库类型
export function addKnowledgesType(data) {
  return request({
    url: '/knowledgesType/knowledgesType',
    method: 'post',
    data: data
  })
}

// 修改知识库类型
export function updateKnowledgesType(data) {
  return request({
    url: '/knowledgesType/knowledgesType',
    method: 'put',
    data: data
  })
}

// 删除知识库类型
export function delKnowledgesType(typeId) {
  return request({
    url: '/knowledgesType/knowledgesType/' + typeId,
    method: 'delete'
  })
}
